function getDate(){
    var date = new Date();
        year = date.getFullYear(),
        month = date.getMonth()+1,
        day = date.getDate(),
        week = date.getDay();
        week = dayToweek(week);
    if( month < 10 ){
        month = "0" + month;
    }
    if( day < 10 ){
        day = "0" + day;
    }
    var datetime = year+"年"+month+"月"+day+"日"+" "+week;
    $("#weatherDiv4_date").text(datetime);
    $("#day").text(day);
    var IMonthCn = calendar.solar2lunar().IMonthCn,
        IDayCn = calendar.solar2lunar().IDayCn,
        gzYear = calendar.solar2lunar().gzYear,
        gzMonth = calendar.solar2lunar().gzMonth,
        gzDay = calendar.solar2lunar().gzDay, 
        Animal = calendar.solar2lunar().Animal; 
    $("#lunar_calendar_month_year").text(IMonthCn+IDayCn+gzYear+"年("+Animal+"年)");
    $("#lunar_calendar_month_day").text(gzMonth+"月 "+gzDay+"日")
    // console.log(calendar.solar2lunar());
    calendar.getTerm(2018, 18);
    // if( calendar.getTerm(2018, 18) > day ){
    //     console.log(month+"月"+calendar.getTerm(2018, 18)+"日"+calendar.solarTerm[17]);
    // } else{
    //     var month1 = (month+1);
    // }
}
getDate();